package org.theSeed.base.pojo.constant;

import cn.hutool.core.bean.copier.CopyOptions;

import java.io.Serializable;
import java.nio.charset.Charset;

/**
 * 系统常量
 */
public class SysConstant  implements Serializable {
    /**
     * 通用
     */
    public final static String SEED = "SEED";

    /**
     * 空字符串
     */
    public final static String EMPTY_STR = "";

    /**
     * 意思就是YES
     */
    public final static String Y = "Y";

    /**
     * 意思就是NO
     */
    public final static String N = "N";

    /**
     * 意思就是1
     */
    public final static Integer ONE = 1;

    /**
     * 意思就是0
     */
    public final static Integer ZERO = 0;

    /**
     * 系统默认编码
     */
    public static String SYSTEM_CODE = "UTF-8";

    /**
     * 全链路id
     */
    private static String TRACE_ID = "Trace-Id";

    /**
     * 拷贝属性
     */
    public static CopyOptions copyOptions;

    /**
     * 字符编码
     */
    public static Charset defaultCharset = Charset.forName(SYSTEM_CODE);


    {
        copyOptions = CopyOptions.create();
        copyOptions.setIgnoreCase(true);
        copyOptions.setIgnoreError(true);
        copyOptions.setIgnoreNullValue(true);
    }
}
